package com.hl.sfzy.mapper.course;

import com.hl.sfzy.entity.course.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
* @author fxy
* @description 针对表【course(课程表，存储所有课程信息)】的数据库操作Mapper
* @createDate 2024-09-07 14:19:25
* @Entity com.hl.sfzy.entity.course.Course
*/
@Mapper
@Repository
public interface CourseMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    List courseAllContent();

    List courseLikeSearch(@Param("courseName")String courseName,@Param("startTime")  Date startTime,@Param("endTime")  Date endTime);

}
